/*
 * @description:
 * @Author: lal
 * @Date: 2020-05-27 14:03:45
 * @LastEditors: lal
 * @LastEditTime: 2020-05-27 19:42:38
 */

import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    count: 1,
  },
  mutations: {
    increment(state) {
      // 变更状态
      setTimeout(() => {
        state.count++;
      }, 5000);
    },
  },
  actions: {},
  modules: {},
});
